// Img8BitTIF.h: interface for the CImg8BitTIF class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_IMG8BitTIF_H__BFDFC953_DFF5_442F_9EAB_01444444444270F__INCLUDED_)
#define AFX_IMG8BitTIF_H__BFDFC953_DFF5_442F_9EAB_01444444444270F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CImg8BitTIF  
{
public:
	CImg8BitTIF();
	virtual ~CImg8BitTIF();

public:
	int GetImgBitPerSap(char *pFileName,int &nBitsPerSample);
	int OpenImgFile(char *pFileName,zkImgBitInfo *pImage);
	int SaveImgFile(char *pFileName,zkImgBitInfo *pImage);


private:
	TIFF* TIFFOpenEx(CxFile *hFile,char* mode = "rb");
    void ReadBit16Tiff(TIFF *pTif,zkImg16BitInfo **ppImgInfo);
};

#endif // !defined(AFX_IMAGETIF_H__BFDFC953_DFF5_442F_9EAB_015361FF270F__INCLUDED_)
